import React from 'react';
import './index.less'
import HeadLead from './HeadLead'
import Search from "./Search";
import {Affix} from "antd";
import ShowSide from "./ShowSide";
function Header(){
    const [top] = React.useState(0);
    return (
        <Affix offsetTop={top}>
            <div className='header'>
                <div className="container headerLead">
                    {/*路由*/}
                    <HeadLead/>
                    {/*搜索框*/}
                    <Search/>
                </div>
                <div className='sideDetail'>

                        <ShowSide/>

                </div>
            </div>
        </Affix>
    )
}

export default Header;